﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Shop.Core;
using DoNet.Common.Utilities;
using System.Data;

namespace Shop.WebApp
{
    public partial class WebForm3 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BasicDataCore m_basicDataCore = new BasicDataCore();
            IEnumerable<Shop.Intermediate.Data.IBasicData> ilist= m_basicDataCore.GetList();

            DataTable ds = DataTableHelper.ToDataTable<Shop.Intermediate.Data.IBasicData>(ilist);

            GridView1.DataSource = ds;
            GridView1.DataBind();
        }
    }
}
